<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\common\model;

/**
 * ACTIVITY模型
 */
class Activity extends ModelBase
{
    protected $table='ob_my_activity';

    public function getPlanTimeAttr($time)
    {
        return date('Y-m-d h:i:s',$time);
    }
    
    public function setPlanTimeAttr($time)
    {
        return strtotime($time);
    }
    public function getExecuteTimeAttr($time)
    {
        return date('Y-m-d h:i:s',$time);
    }
    
    public function setExecuteTimeAttr($time)
    {
        return strtotime($time);
    }
}